import request from '@/utils/request'

// 查询招聘发布列表
export function listRelease(query) {
  return request({
    url: '/system/release/list',
    method: 'get',
    params: query
  })
}

// 查询招聘发布详细
export function getRelease(rrId) {
  return request({
    url: '/system/release/' + rrId,
    method: 'get'
  })
}

// 新增招聘发布
export function addRelease(data) {
  return request({
    url: '/system/release',
    method: 'post',
    data: data
  })
}

// 修改招聘发布
export function updateRelease(data) {
  return request({
    url: '/system/release',
    method: 'put',
    data: data
  })
}

// 删除招聘发布
export function delRelease(rrId) {
  return request({
    url: '/system/release/' + rrId,
    method: 'delete'
  })
}
